<?php

use Illuminate\Database\Seeder;
use App\Models\Statistical\MonthlyAttendanceReports;

class ProjectDimensionalityAttendanceReportsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$reports = [
    		[
    			'company_id' => 1,
    			'project_id' => 1,
    			'project_name' => '花园城一期',
    			'month' => '2018-04',
    			'user_id' => 1,
    			'user_name' => 'George',
    			'position' => '开发者',
    			'day_01' => 1,
    			'day_02' => 1,
    			'day_03' => 1,
    			'day_04' => 1,
    			'day_05' => 1,
    			'day_06' => 1,
    			'day_07' => 1,
    			'day_08' => 1,
    			'day_09' => 1,
    			'day_10' => 1,
    			'day_11' => 1,
    			'day_12' => 1,
    			'day_13' => 1,
    			'day_14' => 1,
    			'day_15' => 1,
    			'day_16' => 1,
    			'day_17' => 1,
    			'day_18' => 1,
    			'day_19' => 1,
    			'day_20' => 1,
    			'day_21' => 1,
    			'day_22' => 1,
    			'day_23' => 1,
    			'day_24' => 1,
    			'day_25' => 1,
    			'day_26' => 1,
    			'day_27' => 1,
    			'day_28' => 1,
    			'day_29' => 1,
    			'day_30' => 1,
    			'day_31' => null,
    			'created_at' => date('Y-m-d H:i:s'),
    			'updated_at' => date('Y-m-d H:i:s')
			],[
				'company_id' => 1,
    			'project_id' => 1,
    			'project_name' => '花园城一期',
    			'month' => '2018-04',
				'user_id' => 2,
				'user_name' => 'Kevin',
    			'position' => '保安',
    			'day_01' => 2,
    			'day_02' => 2,
    			'day_03' => 2,
    			'day_04' => 2,
    			'day_05' => 2,
    			'day_06' => 2,
    			'day_07' => 2,
    			'day_08' => 2,
    			'day_09' => 2,
    			'day_10' => 2,
    			'day_11' => 2,
    			'day_12' => 2,
    			'day_13' => 2,
    			'day_14' => 2,
    			'day_15' => 2,
    			'day_16' => 2,
    			'day_17' => 2,
    			'day_18' => 2,
    			'day_19' => 2,
    			'day_20' => 2,
    			'day_21' => 2,
    			'day_22' => 2,
    			'day_23' => 2,
    			'day_24' => 2,
    			'day_25' => 2,
    			'day_26' => 2,
    			'day_27' => 2,
    			'day_28' => 2,
    			'day_29' => 2,
    			'day_30' => 2,
    			'day_31' => null,
    			'created_at' => date('Y-m-d H:i:s'),
    			'updated_at' => date('Y-m-d H:i:s')
			],
		];

    	foreach ($reports as $report) {
			MonthlyAttendanceReports::create($report);
		}
    }
}
